import request from '@/utils/request'

const api_prefix = '/admin/file'

export default {

  /**
   * 设备数据导出为excel表
   *
   * @returns {*}
   */
  exportEquipmentDataExcel(equipmentDataQueryRequest) {
    return request(({
      url: `${api_prefix}/equipment/data/excel`,
      method: 'get',
      responseType: 'blob',
      params: equipmentDataQueryRequest
    }))
  },

  exportUserExcel(sysUserQueryRequest) {
    return request(({
      url: `${api_prefix}/user/excel`,
      method: 'get',
      responseType: 'blob',
      params: sysUserQueryRequest
    }))
  }

}
